<?php
/*
 * 接口配置文件
 */
return array(

	'/demo/db_test' => array(
		'method' => 'POST'
	),

	//新增学生
	'/student/add' => array(
		'method' => 'POST',
		'autoTable' => 'mm_student',
		'autoType'  => 'C'
	),
	//删除学生
	'/student/delete' => array(
		'method' => 'POST',
		'autoTable' => 'mm_student',
		'autoType'  => 'D'
	),
	//更新学生
	'/student/update' => array(
		'method' => 'POST',
		'autoTable' => 'mm_student',
		'autoType'  => 'U'
	),
	//查询学生
	'/student/search' => array(
		'method' => 'ALL',
		'autoTable' => 'mm_student',
		'autoType'  => 'R'
	),

	'/demo/test' => array(
		'method' => 'GET'
	),

	'/demo/demo1' => array(
		'method' => 'GET'
	),

	'/demo/demo2'   => array(
		'method'        => 'GET',
		'getMustParams' => array(
			'params_1 | NOEMPTY',
			'params_2 | NUMBER'
		)
	),

	'/demo/demo3'   => array(
		'method'        => 'POST',
		'postMustParams' => array(
			'params_1 | NOEMPTY',
			'params_2 | NUMBER'
		)
	),

	'/demo/demo4'   => array(
		'method'        => 'ALL',
		'getMustParams' => array(
			'params_1 | NOEMPTY',
			'params_2 | NOEMPTY'
		),
		'postMustParams' => array(
			'params_3 | NOEMPTY',
			'params_4 | NOEMPTY'
		)
	),

	'/demo/demo5'    => array(
		'method'  	 => 'GET',
		'isCache' 	 => true,    //是否缓存
		'isGetCache' => 'NO',    //是否使用缓存
		'cacheType'  => 'file'   //缓存的方式 file:文件缓存
	),

	'/demo/a' => array(
		'method' => 'ALL'
	),

    '/redisDemo/set' => array('method' => 'ALL'),
    '/redisDemo/get' => array('method' => 'ALL'),

    	//获取学生信息
	// '/student/search' => array(
    //     'method' => 'ALL',
	// 	'autoTable' => 'mm_student',
	// 	'autoType'  => 'R',
	// 	'postMustParams' => array(
	// 		's_name | NOEMPTY'
	// 	),
	// 	'getMustParams' => array(
	// 		)
    // ),
	//新增学生信息
	'/student/add' => array(
        'method' => 'POST',
		'autoTable' => 'mm_student',
		'autoType'  => 'C',
		'postMustParams' => array(
			's_name | NOEMPTY'
		),
		'getMustParams' => array(
			)
    ),
	//班级查询
	'/class/search' => array(
        'method' => 'ALL',
		'autoTable' => 'mm_class',
		'autoType'  => 'R',
		
    ),
	//新增班级
	'/class/add' => array(
        'method' => 'POST',
		'autoTable' => 'mm_class',
		'autoType'  => 'C',
		'postMustParams' => array(
			'c_name | NOEMPTY'
		),
		'getMustParams' => array(
			)
    ),
	//学生查询2
	'/student/search2' => array(
        'method' => 'ALL',
		'autoTable' => 'mm_student',
		'autoType'  => 'R',
		'postMustParams' => array(
			'b | NUMBER',
			),
		'getMustParams' => array(
			'a | NOEMPTY'
		)
    ),

);